package rsj.service;

import java.sql.Connection;
import java.sql.SQLException;

import rsj.dao.WebItemDao;

import com.rlyy.aibase.utils.base.MapNode;
import com.rlyy.aibase.utils.base.TableNode;

import common.util.Assert;

public class WebItemService {
	
	private static final WebItemService infoService = new WebItemService();

    public static WebItemService getInstance(){
        return infoService;
    }
    
    private static WebItemDao infoDao = WebItemDao.getInstance();
    
    public TableNode findAllRole(Connection conn,MapNode data)throws SQLException{
    	
    	String status = data.getValue("Item_Typeid");
    	Assert.notNull(status,"类别Id不能为空");
    	
    	return infoDao.findAllItem(conn, status);
    }

}
